function getXhttp ( )
{
    var ajax_request;
    
    if (  window.ActiveXObject  )  {
        var mSoftVersions = [
            'MSXML2.DOMDocument.5.0',
            'MSXML2.DOMDocument.4.0',
            'MSXML2.DOMDocument.3.0',
            'MSXML2.DOMDocument.2.0',
            'MSXML2.DOMDocument',
            'Microsoft.XmlDom',
            'Msxml2.XMLHTTP',
            'Microsoft.XMLHTTP'
        ];
        
        for (  i=0; i<mSoftVersions.length; i++  )  {
            try {
                ajax_request = new ActiveXObject (  mSoftVersions[i]  );
            }  catch (  e  )  {    }
        }
    }  else if (  !ajax_request && typeof XMLHttpRequest != 'undefined'  )  {
        try {
            ajax_request = new XMLHttpRequest;
        }  catch (  e  )  {    }
    }  else if (  !ajax_request && window.createRequest  )  {
        try {
            ajax_request = window.createRequest;
        }  catch (  e  )  {    }
    }  else  {
        ajax_request = false;
    }
    
    return ajax_request;
}

function send_form ( )
{
    var xml = getXhttp( );
    if ( !xml )
       return false; //Usually you alert something but I don't :d

    xml.open('POST', '/index/send_msg/');
    xml.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    
    var submit = document.getElementById('msg_submit').value;
    var content = document.getElementById('msg_input').value
    //CHECKS DONE HERE.

    xml.send('msg_submit=' + submit + '&msg_content=' + content);

    //ANYTHING EXTRA IS ADDED HERE.
}